home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / CIncludes / TelOther601.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  2.7 KB  |  85 lines  |  [TEXT/MPS ]

  1. /*
  2.     TelOther601.h
  3.     
  4.     Header file for the TelOtherFunction call that can be used to identify the
  5.     hardware being used by the GeoPort Telephone Tool.
  6.     
  7.     If you call  TelOtherFunction on the GeoPort Telephone Tool
  8.     with the first short of the parameter blaock set to 0x601, the 
  9.     tool will fill your parameter block with information on the
  10.     harware device that is currently being used by the tool.
  11.     
  12.     The use that is envisioned for this call, is to provide more
  13.     information for tech support in the future when more variants
  14.     of the GeoPort Telecom Adapter exist.
  15.     
  16.     Other Telephone Tool vendors may also implement this TelOtherFunction
  17.     call for the same purpose.  The next time we revise the Telephone Manager
  18.     interface we will add this functionality as a standard API and data
  19.     structure.
  20.     
  21.     Copyright © Apple Computer, Inc.  1995. All rights reserved.
  22. */
  23.  
  24. #define kTELOtherToolDeviceInfo 601
  25.  
  26. const unsigned char *kAppleToolManufacturerName= "\pApple Computer, Inc.";
  27. const unsigned char *kGTAK01DeviceName= "\pGeoPort Telecom Adapter";
  28.  
  29. /****************************************************************/
  30. /*            Country codes.                                        */
  31. /****************************************************************/
  32.  
  33. #define    CCInternational     0
  34. #define    CCSweden            1
  35. #define    CCSwitzerland        2
  36. #define    CCUnitedKingdom        3
  37. #define    CCUnitedStates        4
  38. #define    CCFinland            5
  39. #define    CCAustralia            6
  40. #define    CCAustria            7
  41. #define    CCBelgium            8
  42. #define    CCCanada            9
  43. #define    CCDenmark            10
  44. #define    CCFrance            11
  45. #define    CCGermany            12
  46. #define    CCHolland            13
  47. #define    CCIreland            14
  48. #define    CCItaly                15
  49. #define    CCJapan                16
  50. #define    CCLuxembourg        17
  51. #define    CCNorway            18
  52. #define    CCSpain                19
  53. #define    CCNewZealand        20
  54. #define    CCHongKong            21
  55. #define    CCSingapore            22
  56. #define    CCTaiwan            23
  57. #define    CCKorea                24
  58. #define    CCMalaysia            25
  59. #define    CCBulgaria            26
  60. #define    CCCzechRepublic        27
  61. #define    CCSlovakia            28
  62.  
  63. #if defined(powerc) || defined(__powerc)
  64. #pragma options align=mac68k
  65. #endif
  66. struct TELToolDeviceInfoRecord {
  67.   short csCode;     // Code 601 for hardware device identification
  68.   short         structVersion;       // "$0001" for this version of the data structure.
  69.   OSType       toolManufacturer;     // "Appl" for Apple, "Cypr" for Cypress
  70.   OSType       toolDeviceType;
  71.   short           deviceVersionNumber;  // "$0001"
  72.   short           CountryCode;             // We always return zero now.
  73.   Str31        toolManufacturerName; // "Apple Computer, Inc."
  74.   Str31        toolDeviceName;       // "GeoPort Telephone Adapter" 
  75. };
  76. #if defined(powerc) || defined(__powerc)
  77. #pragma options align=reset
  78. #endif
  79.  
  80.  
  81. typedef struct TELToolDeviceInfoRecord TELToolDeviceInfoRecord;
  82. typedef TELToolDeviceInfoRecord *TELToolDeviceInfoPtr, **TELToolDeviceInfoHandle;
  83.  
  84.  
  85.